﻿using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using Prism.Mvvm;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace SEPD.CAD.Template.Command
{
    public partial class TemplateViewModel : BindableBase
    {

        private void PreProccess()
        {
            //assemblyDir = Path.GetDirectoryName(assemblyPath) + "\\";
            return;
        }

        private void TempExecute()
        {
            //当前选项卡文档
            Document document = Application.DocumentManager.MdiActiveDocument;
            //编辑器
            Editor editor = document.Editor;
            //editor.WriteMessage("HELLO FROM VS C#");//命令行文字 
            document.SendStringToExecute("EditEntity ", true, false, false);

            return;
        }

        private void TempExecute2()
        {

            CommonVoidDelegate voidDelegate = new CommonVoidDelegate(EditEntity);
            CommonVoidExecutor(voidDelegate);


            ////当前选项卡文档
            //Document document = Application.DocumentManager.MdiActiveDocument;
            ////编辑器
            //Editor editor = document.Editor;
            ////editor.WriteMessage("HELLO FROM VS C#");//命令行文字 
            //document.SendStringToExecute("CadDbText ", true, false, false);

            return;
        }





    }





}
